package com.acoffee.java;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author acoffee
 * @create 2021-11-10 15:54
 */
public class BeanfactoryDemo1 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        Person chinese = applicationContext.getBean("chinese", Person.class);
        chinese.eat();
    }
}
